 /**
 * 子模块路由
 * DHpai
 */

var router = function($urlRouterProvider, $stateProvider){


 	$stateProvider


   //菜单列表
    .state('app.officeList', {
        url: "/office/officelist",
        views: {
            'main@' : {
                template : require('./views/office.html'),
                controller : 'officeList',
            }
        },
        resolve:{
            tableconfig : function(tableservice){
                return tableservice.tableconfig();
            },
            officeList : function(officeservice){
                return officeservice.officeList();
            },
            officeInfo : function(officeservice){
                return officeservice.officeInfo();
            },
            officeSave : function(officeservice){
                return officeservice.officeSave();
            },
            delOffice : function(officeservice){
                return officeservice.delOffice();
            },
            areaList : function(officeservice){
                return officeservice.areaList();
            },
            addOffice : function(officeservice){
                return officeservice.addOffice();
            },
            addUser : function(officeservice){
                return officeservice.addUser();
            },
            roleList : function(officeservice){
                return officeservice.roleList();
            }
        }
    })


	;

};

module.exports = router;